package com.backend.demo1.models;

public class Permission {
    private Long id; // 权限的唯一标识
    private String name; // 权限名称，如 "read" 或 "write"
    private String description; // 权限描述

    // 构造方法
    public Permission(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public Permission(Long id, String name, String description) {
        this.id = id;
        this.name = name;
        this.description = description;
    }

    // Getter 和 Setter 方法
    public Long getid() {
        return id;
    }

    public void setid(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}